//
//  UIViewController+SimDragNavVC.m
//  Knowbox
//
//  Created by LiuXubin on 14/12/31.
//  Copyright (c) 2014年 knowin. All rights reserved.
//

#import "UIViewController+SimDragNavVC.h"

@implementation UIViewController (SimDragNavVC)

- (BOOL)shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
    return NO;
}

- (BOOL)shouldBeginDragGesture:(UIGestureRecognizer *)gesture receiveTouch:(UITouch *)touch
{
    if([touch.view isKindOfClass:[UIControl class]]){
        return NO;
    }
    return YES;
}

@end
